<?php 

	$login = Helper::verif($_POST,"login","string","Connexion");
	$mail = Helper::verif($_POST,"mail","string");
	$mdp = Helper::verif($_POST,"mdp","string");
	if($login && $mail && $mdp){
		$m = new Membre();
		$_SESSION['m'] = $m->isExist($mail,$mdp);
		Helper::d($_SESSION['m']);
	}else{
		$f = new Form("","POST","formulaire");
		$f->addInput("text", "mail","mail","Email: ",null,"Email");
		$f->addInput("password", "mdp","mdp","Mot de passe: ",null,"*****");
		$f->addInput("submit", "login","login",NULL,"Connexion");
		$f->afficheForm();
	}
?>